import instance from "@/utils/request";

//登录 api/pcUser/login
export function passwordLogin(data) {
    return instance.post('/api/pcUser/login', data)
}

// 获取登录状态 /api/pcUser/login-user/info
export function loginUser() {
    return instance.get('/api/pcUser/login-user/info')
}

//获取 课程 api/weChat/applet/subject/list
export function getSub(data) {
    return instance.post('/api/weChat/applet/subject/list', data, {
            headers: {
                'Content-Type': 'application/json'
            },
        }
    )
}
